<template>
	<div class="productDetails">
		<div class="top"><back></back>商品详情</div>
		<div v-show='!isShow'>暂无数据</div>
		<div v-show='isShow' class="data">
			<div class="data-con">
				<li>
					{{data.con}}
				</li>
				<li></li>
			</div>
			<div class="weburl">
				<iframe :src="data.weburl"></iframe>
			</div>
			
		</div>
	</div>
</template>
<script type="text/javascript">
	import back from '../public/back'
	export default {
		components:{
			back:back
		},
		data:function (argument) {
			// body...
			return {
				data:'',
				isShow:true
			}
		},
		
		created:function (){
			var id = this.$route.query.id;
			var _this = this;

			var url = 'http://juhuituan.boguyuan.com/juhuituan/reqData?action=viewPro&acode=1&uid=25177&id='+id;
			this.axios.get(url).then(function (data) {
				if (data.data.code==100) {
					_this.data = data.data.data;
					console.log(_this.data)
				}else{
					_this.isShow = !_this.isShow;
				}
			});

		}
	}
</script>
<style scoped="">
	@import '../../assets/css/productDetails.css'
</style>